package com.rmdjzz.slmmn.pojo.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.rmdjzz.slmmn.pojo.BasePojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 歌曲
 * @作者 张绍鑫
 * @创建时间 2023/5/26
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Song extends BasePojo {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String songImg;
    private String songName;//歌名
    private String song;//歌曲地址
    private String words;//歌词
    private String songTime;//播放时长
    private Integer singerId;//歌手id
    private Integer typeId;
    private Integer recommendId;
    private Integer heat;//歌曲热度（统计7天内的播放次数，每隔7天清零）
    private Integer num;//播放次数

    public Song(Date createTime, Date updateTime, Integer deleted, Integer id, String songImg, String songName, String songTime, Integer heat, Integer num) {
        super(createTime, updateTime, deleted);
        this.id = id;
        this.songImg = songImg;
        this.songName = songName;
        this.songTime = songTime;
        this.heat = heat;
        this.num = num;
    }
}
